package com.jimikongjian.models;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * Created by baidu on 17/2/11.
 * @author fuxiuyang
 */
@Scope("prototype")
@Repository("userInfo")
public class UserInfo {

    /**
     * 初始化id号，将id号置为-1
     */
    public static final int INIT_ID = -1;

    /**
     * 性别为男生
     */
    public static final int SEX_MAN = 0;

    /**
     * 性别为女生
     */
    public static final int SEX_WOMAN = 1;

    /**
     * 不是vip
     */
    public static final int NOT_VIP = 0;

    /**
     * 是vip
     */
    public static final int IS_VIP = 1;

    /**
     * 不展示个人信息
     */
    public static final int NOT_SHOW = 0;

    /**
     * 展示个人信息
     */
    public static final int SHOW = 1;

    /**
     * 自身的id号
     */
    private int id;

    /**
     * 对用的是用户表user中的id号，
     * 如果未赋值，则为-1
     */
    private int userId = -1;

    /**
     * 对应的是用户表中的邮箱
     */
    private String userEmail;

    /**
     * 昵称
     */
    private String nick;

    /**
     * 头像，存储的是头像的头像名
     */
    private String avatar = "default.jpg";

    /**
     * 个性签名
     */
    private String signature;

    /**
     * 性别
     * 0：表示是男生
     * 1：表示是女生
     */
    private int sex;

    /**
     * 年龄
     */
    private int age;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 生日
     */
    private Date birthday;

    /**
     * 城市
     */
    private String city;

    /**
     * VIP会员
     * 0：表示不是VIP
     * 1：表示是VIP
     */
    private int vip = 0;

    /**
     * 兴趣
     */
    private String interest;

    /**
     * 个人信息公开
     * 0：保密
     * 1：公开个人信息
     */
    private int show = 0;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public int getVip() {
        return vip;
    }

    public void setVip(int vip) {
        this.vip = vip;
    }

    public String getInterest() {
        return interest;
    }

    public void setInterest(String interest) {
        this.interest = interest;
    }

    public int getShow() {
        return show;
    }

    public void setShow(int show) {
        this.show = show;
    }
}
